const Layout = () => import('@/layout/index.vue')

export default [
  {
    path: '/acl',
    component: Layout,
    redirect: '/acl/user/list',
    name: '权限管理',
    meta: { title: '权限管理', icon: 'chart' },
    icon:'Key',
    children: [
      {
        path: 'user/list',
        name: '用户管理',
        component: () => import('@/views/acl/user/list.vue'),
        meta: { title: '用户管理' },
      },
      {
        path: 'user/add',
        name: '用户添加',
        component: () => import('@/views/acl/user/form.vue'),
        meta: { title: '用户添加' },
        hidden: true,
      },
      {
        path: 'user/update/:id',
        name: '用户修改',
        component: () => import('@/views/acl/user/form.vue'),
        meta: { title: '用户修改' },
        hidden: true,
      },
      {
        path: 'user/role/:id',
        name: '分配角色',
        component: () => import('@/views/acl/user/roleForm.vue'),
        meta: { title: '分配角色' },
        hidden: true,
      },
      {
        path: 'role/list',
        name: '角色管理',
        component: () => import('@/views/acl/role/list.vue'),
        meta: { title: '角色管理' },
      },
      {
        path: 'role/add',
        name: '角色添加',
        component: () => import('@/views/acl/role/form.vue'),
        meta: { title: '角色添加' },
        hidden: true,
      },
      {
        path: 'role/update/:id',
        name: '角色修改',
        component: () => import('@/views/acl/role/form.vue'),
        meta: { title: '角色修改' },
        hidden: true,
      },
      {
        path: 'role/distribution/:id',
        name: '角色权限',
        component: () => import('@/views/acl/role/roleForm.vue'),
        meta: { title: '角色权限' },
        hidden: true,
      },
      {
        path: 'menu/list',
        name: '菜单管理',
        component: () => import('@/views/acl/menu/list.vue'),
        meta: { title: '菜单管理' },
      },

      
    ],
  },
]
